#include <stdio.h>
int main()
{	    	   
    int a, b, c;
    int min, max;
    scanf("%d %d %d", &a, &b, &c);
    min = a;
    if (min > b)
        min = b;
    if (min > c)
        min = c;
    
    max = a;
    if (max < b)
       max = b;
    if (max < c)
       max = c;
    
    printf("%d", min + max);
    return 0;
}	